//
//  CAnAlgSwimSumData+Desc.m
//  CareRing
//
//  Created  on 2024/12/14.
//
    

#import "CAnAlgSwimSumData+Desc.h"
#import <DateTools/DateTools.h>
#import "ConfigModel.h"
@implementation CAnAlgSwimSumData (Desc)
-(NSString *)wholeDesc
{

    NSMutableString *infoString = [NSMutableString new];

    NSDate *date = [NSDate dateWithTimeIntervalSince1970:self.timeStamp];
    
    [infoString appendFormat:@"Date:%@, ", [date formattedDateWithFormat:_L2(L_DATE_FMT)]];

    [infoString appendFormat:@"Strokes:%u, ", self.totalStrokes];

    [infoString appendFormat:@"SwimDuration:%u s, ", self.swimDuration];

    [infoString appendFormat:@"Swim Distance:%u m, ", self.totalSwimmingDistance];

    [infoString appendFormat:@"Swim pace:%u min/Km *10, ", self.pace];

    [infoString appendFormat:@"Swim laps:%u , ", self.swimmingLaps];

    [infoString appendFormat:@"Swolf:%u , ", self.swolf];

    
    
    return infoString;
    
}
@end
